FROM adoptopenjdk/openjdk11:centos

#设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

#复制应用
ADD ./xzjx-mom-server/jcfk-mom-modules/jcfk-eam-core/target/jcfk-eam-core-1.2.0.jar /jcfk-eam-core.jar

ENTRYPOINT ["java","-javaagent:/usr/local/skywalking/agent/skywalking-agent.jar","-Dskywalking.agent.service_name=xzjx-mom-eam","-Dskywalking.collector.backend_service=192.168.3.5:11800","-Dskywalking.trace.ignore_path=Lettuce/**","-jar","/jcfk-eam-core.jar"]